{eval $_TPL['title'][]='编辑公司';}
{template header}
<script type="text/javascript" src="include/js/city.js"></script>
<div id="content" class="setup_func_list">
    <h5>编辑公司：</h5>
    <ul class="form_description_ul">
        <li>当网站有新动态，过年过节的时候会发邮件到该公司邮箱</li>
        <li>请填写正确的公司网址，否则无法使用</li>
    </ul>
    <form id="editform" action="setup.php?ac={$ac}&op=edit&cid={$company['cid']}" method="post">
        <input type="hidden" name="formhash" value="{eval echo Utils::formhash();}"/>
        <input type="hidden" name="editsubmit" value="true"/>
        <table class="form_table" cellpadding="0" cellspacing="0">
            <tr>
                <th>公司名称：</th>
                <td><input type="text" value="{$company['name']}" class="i_input" name="name" /></td>
            </tr>
            <tr>
                <th>公司邮箱：</th>
                <td><input type="text" value="{$company['email']}" class="i_input" name="email" /></td>
            </tr>
            <tr>
                <th>公司网址：</th>
                <td><input type="text" value="{$company['website']}" size="45" class="i_input" name="website" /></td>
            </tr>
            <tr>
                <th>公司地址：</th>
                <td>
                    <select name="province" id="province"></select>
                    <select name="city" id="city"></select>
                </td>
            </tr>
            <tr>
                <th>&nbsp;</th>
                <td>
                    <input id="editsubmit" type="button" value="编辑" class="i_submit"/>
                    <span id="edit_return_message"></span>
                </td>
            </tr>
        </table>
    </form>
</div>
<script type="text/javascript">
    show_province('province', "{$company['province']}", 'city');
    show_city('city', "{$company['province']}", "{$company['city']}");
    $(function(){
        $("#editsubmit").click(function(){
            ajaxform('editform', 'edit_return_message');
        });
    });
</script>
<div id="siber_icon">
    <img src="template/default/image/g_manage_big.jpg"/>
</div>
<div class="clear"></div>
{template footer}